from setuptools import setup, find_packages
import os

requirements = [
    'srt',
    'moviepy',
    'opencc-python-reimplemented',
    'whisper @ git+https://github.com/openai/whisper.git'
]

init_fn = os.path.join(os.path.dirname(__file__), 'autocut', '__init__.py')
with open(init_fn) as f:
    for l in f.readlines():
        if '__version__' in l:
            exec(l)
            break

setup(
    name='autocut',
    version=__version__,
    install_requires=requirements,
    python_requires='>=3.9',
    packages=find_packages(),
    entry_points={
        'console_scripts': [
            'autocut = autocut.main:main',
        ]
    },
)
